//
//  DepoistHintCell.swift
//  d11
//
//  Created by peale on 2018/10/20.
//  Copyright © 2018年 Tech_001. All rights reserved.
//

import UIKit

class DepoistTopHintCell: UITableViewCell {
    var titleLabel : UILabel?
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.setUpUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    func setUpUI() -> Void {
        self.backgroundColor  = UIColor.white
        self.selectionStyle = UITableViewCell.SelectionStyle.none
        
        self.titleLabel = UILabel.init()
        self.titleLabel?.text = "以下请在完成存款后填写"
        self.titleLabel?.textColor = HexRGBAlpha(0xFFCF8D, 1)
        self.titleLabel?.textAlignment = .left
        self.titleLabel?.font = UIFont.systemFont(ofSize: 14)
        self.contentView.addSubview(self.titleLabel!)
        self.titleLabel?.snp.makeConstraints{(make) in
            make.width.equalToSuperview().offset(-24)
            make.left.equalToSuperview().offset(12)
            make.height.equalTo(30)
            make.top.equalToSuperview().offset(5)
        }
    }
    
    func setData(hint :String?) -> Void {
        self.titleLabel?.text = hint
    }
}
